package com.yunzheng.modoules.enrollAndLogin.enroll.service;

public interface MemberService {
    /**
     * 邀请码是否正确
     * @param invite_code
     * @return
     */
    boolean isCode(String invite_code);

    /**
     * 用户名是否存在，用于注册
     * @param name
     * @return
     * @throws Exception
     */
    boolean isExistMember(String name,String term,String direction) throws Exception;

    // boolean isExistUser()

    /**
     * 是否注册成功
     * @param phone_num
     * @param password
     * @return
     * @throws Exception
     */
    boolean isEnroll(String username,String term,String direction,String gender,String phone_num,String password) throws Exception;

    /**
     * 注册时的错误提示
     * @param phone_num
     * @param password
     * @return
     * @throws Exception
     */
    String getRegisterMsg(String phone_num,String password) throws Exception;

}

